#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <ctime>
#define ll long long
using namespace std;
int main(){
	srand((int)time(0));
	freopen("network.in","r",stdin);
	freopen("network.out","w",stdout);
	int n;
	cin>>n;
	while(n--){
		switch(rand()%7){
			case 1:
				cout<<"OK";
				break;
			case 2:
				cout<<"OK";
				break;
			case 3:
				cout<<"FATL";
				break;
			case 4:
				cout<<"FATL";
				break;
			case 5:
				cout<<"ERR";
				break;
			case 6:
				cout<<"ERR";
				break;
			case 0:
				cout<<rand();
				break;
		}
	}
	return 0;
}
